package com.koron.device.zsjRemote.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "eam-common-web", fallbackFactory = FeignFallbackFactory.class)
public interface AttachmentFeignService {

	@GetMapping("/attachment/attachmentList")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "businessId", value = "业务id", required = true, paramType = "query"),
			@ApiImplicitParam(name = "subBusinessId", value = "子业务ID", required = false, paramType = "query", dataType = "String"),
			@ApiImplicitParam(name = "businessType", value = "业务类型", required = false, paramType = "query")

	})
	Response attachmentList(
			@RequestParam("businessId") String businessId,
			@RequestParam(value = "subBusinessId" ,required = false) String subBusinessId,
			@RequestParam(value = "businessType" ,required = false) String businessType) ;

	@GetMapping("/attachment/attachmentListByBusinessIds")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "businessIds", value = "业务ids", required = true, paramType = "query", allowMultiple = true, dataType = "String"),
			@ApiImplicitParam(name = "businessType", value = "业务类型", required = false, paramType = "query")

	})
	Response getAttachmentListByBusinessIdsWithType(
			@RequestParam("businessIds")String[] businessIds,
			@RequestParam(value = "businessType" ,required = false) String businessType);
}
